<?php

namespace Database\Factories\Article;

use Illuminate\Database\Eloquent\Factories\Factory;

//关联的模型引入
use App\Models\Article\Type;

class TypeFactory extends Factory
{
    // 关联工厂模型
    protected $model = Type::class;


    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            //添加测试数据的规则
            'name' => $this->faker->word,
        ];
    }
}
